/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package runebound.combate;

/**
 *
 * Simplificado sin aliados ni capacidades
 * @author Miguel (alakat@gmail.com)
 */
public class PlanCombate {
    
    private boolean atacarDistancia;
    private boolean atacarMeele;
    private boolean atacarMagia;

    private boolean huir;
    public PlanCombate(boolean atacarDistancia, boolean atacarMeele, boolean atacarMagia,boolean huir) {
        this.atacarDistancia = atacarDistancia;
        this.atacarMeele = atacarMeele;
        this.atacarMagia = atacarMagia;
        this.huir = huir;
    }
    
    public boolean validar(){
        int x = 0;
        if(this.atacarDistancia){
            x++;
        }
        if(this.atacarMagia){
            x++;
        }
        if(this.atacarMeele){
            x++;
        }
        if(this.huir){
            x++;
        }
        return x==1;
    }

    public boolean isAtacarDistancia() {
        return atacarDistancia;
    }

    public boolean isAtacarMagia() {
        return atacarMagia;
    }

    public boolean isAtacarMeele() {
        return atacarMeele;
    }

    public boolean isHuir() {
        return this.huir;
    }
    
    
    
}
